
export default {
    url: "/bpm/form/edit",
    method: "POST",
    name: "编辑表单",
    desc: `通过表单ID编辑表单，此接口字段和创建表单完全一样
    `,
    req: [
        {
            "en": "id",
            "cn": "表单ID"
        },
        {
            "en": "name",
            "cn": "表单名",
            "type": "string"
        },
        {
            "en": "desc",
            "cn": "表单说明",
            "type": "string"
        },
        {
            "en": "pid",
            "cn": "表单分类ID",
            "type": "string"
        },
        {
            "en": "form",
            "cn": "表单附加信息",
            "type": "object",
            "children": [
                {
                    "en": "template",
                    "cn": "表单HTML模板",
                    "type": "string"
                },
                {
                    "en": "data",
                    "cn": "该字段传递一个数组，数组内为表单每一个控件的属性，具体格式请参照表单属性",
                    "type": "object[]",
                }
            ]
        }
    ],
    reqExt: {
        "通用属性":[
            {
                "en": "name",
                "cn": "控件英文名",
                "type": "string"
            },
            {
                "en": "title",
                "cn": "控件中文名",
                "type": "string"
            },

            {
                "en": "orgwidth",
                "cn": "宽度，部分控件无法设置宽度，具体以网页表现为准",
                "type": "string"
            },
            {
                "en": "orgheight",
                "cn": "高度，部分控件无法设置高度，具体以网页表现为准",
                "type": "string"
            },
            {
                "en": "orghide",
                "cn": "是否隐藏，1为隐藏，0为显示，部分控件无法设置隐藏，具体以网页表现为准",
                "type": "string"
            },
        ],
        "文本框":[
            {
                "en": "leipiplugins",
                "cn": "控件类型，文本框为text",
                "type": "string"
            },
            {
                "en": "value",
                "cn": "控件默认值",
                "type": "string"
            },
            {
                "en": "orgalign",
                "cn": "left/center/right 左对齐/居中/右对齐",
                "type": "string"
            },
        ],
        "多行文本":[
            {
                "en": "leipiplugins",
                "cn": "控件类型，多行文本为textarea",
                "type": "string"
            },
            {
                "en": "value",
                "cn": "默认值",
                "type": "string"
            },
            {
                "en": "orgfontsize",
                "cn": "字体大小",
                "type": "string"
            }
        ],
        "下拉菜单":[
            {
                "en": "leipiplugins",
                "cn": "控件类型，下拉菜单为select",
                "type": "string"
            },
            {
                "en": "size",
                "cn": "行高",
                "type": "string"
            },
            {
                "en": "values",
                "cn": "可选参数值，为字符串数组",
                "type": "string[]"
            },
            {
                en: "defaultValue",
                cn: "默认选中的值",
                type: "string"
            }
        ],
        "单选框":[
            {
                "en": "leipiplugins",
                "cn": "控件类型，单选框为radios",
                "type": "string"
            },
            {
                en: "orgchecked",
                cn:"默认选中的值",
                type: "string"
            },
            {
                en: "values",
                cn:"可选值，为字符串数组",
                type: "string[]"
            }
        ],
        "多选框":[
            {
                "en": "leipiplugins",
                "cn": "控件类型，多选框为radios",
                "type": "string"
            },
            {
                "en": "checked",
                "cn": "默认选中的值",
                "type": "string[]"
            },
            {
                en: "values",
                cn: "可选值",
                type: "string[]"
            }
        ],
        "宏控件":[
            {
                "en": "leipiplugins",
                "cn": "控件类型，宏控件为macros",
                "type": "string"
            },
            {
                en: "orgtype",
                cn: "取值规则, 当前日期+时间/当前日期/当前年份/当前时间/当前星期/当前用户ID/当前用户姓名/当前用户部门/当前用户完整部门/当前用户上级部门",
                type: "string"
            },
            {
                en: "expression",
                cn: "自定义表达式, 填写该项时，取值规则会被无视",
                type: "string"
            }
        ],
        "日期控件":[
            {
                "en": "leipiplugins",
                "cn": "控件类型，日期控件为datetime",
            },
            {
                en: "orgformat",
                cn: "日期格式化规则，日期+时间/日期/时间",
            }
        ],
        "签名控件":[
            {
                "en": "leipiplugins",
                "cn": "控件类型，签名控件为sign",
            },
        ],
        "选人控件" :[
            {
                "en": "leipiplugins",
                "cn": "控件类型，选人控件为chooseuser",
            },
        ],
        "选部门控件":[
            {
                "en": "leipiplugins",
                "cn": "控件类型，选人控件为choosedep",
            },
        ],
        "图片控件":[
            {
                "en": "leipiplugins",
                "cn": "控件类型，图片控件为chooseimage",
            },
        ],
        "附件控件":[
            {
                "en": "leipiplugins",
                "cn": "控件类型，附件控件为annex",
            },
        ]

    },
    reqEg:{"id":"5e01873d1877e94f67269901","name":"测试表单","desc":"测试说明","pid":"5d6da43978a7e0489445d48f","form":{"template":"<p style=\"text-align: center;\"><span style=\"font-family: 隶书, SimLi; font-size: 36px;\">出差申请单</span><br></p><table data-sort=\"sortDisabled\"><tbody><tr class=\"firstRow\"><td width=\"62.33333333333333\" valign=\"middle\" style=\"word-break: break-all;\">申请人</td><td width=\"283.3333333333333\" valign=\"middle\"><input name=\"8ac8da83627df7b14df32cdbc8d34c61\" type=\"text\" value=\"宏控件：当前用户姓名\" title=\"申请人\" leipiplugins=\"macros\" orgtype=\"当前用户姓名\" expression=\"\" orgwidth=\"150\" style=\"width: 150px;\"></td><td width=\"73.33333333333333\" valign=\"top\" style=\"word-break: break-all;\">所在部门</td><td width=\"80.33333333333333\" valign=\"top\" style=\"word-break: break-all;\"><input name=\"36aff1b25f01d91d44f46ffbd75ba5ef\" type=\"text\" value=\"宏控件：当前用户部门\" title=\"所在部门\" leipiplugins=\"macros\" orgtype=\"当前用户部门\" expression=\"\" orghide=\"0\" orgfontsize=\"\" orgwidth=\"80\" style=\"width: 80px;\"></td><td width=\"131\" valign=\"top\" style=\"word-break: break-all;\"><span leipiplugins=\"select\">需要车辆<select name=\"2d642e56534d4a58f9c0bc9beb53717e\" title=\"是否需要车辆\" leipiplugins=\"select\" size=\"1\" orgwidth=\"40\" style=\"width: 40px;\"><option value=\"是\" selected=\"selected\">是</option><option value=\"否\">否</option></select>&nbsp;&nbsp;</span></td></tr><tr><td width=\"162\" valign=\"top\" style=\"word-break: break-all;\">申请时间</td><td width=\"283.3333333333333\" valign=\"top\"><input name=\"5ba072c60bad0e857ea4a9520d8d288a\" type=\"text\" value=\"宏控件：当前日期+时间\" title=\"申请时间\" leipiplugins=\"macros\" orgtype=\"当前日期+时间\" expression=\"\" orgwidth=\"150\" style=\"width: 150px;\"></td><td width=\"142\" valign=\"top\" style=\"word-break: break-all;\">出差地点</td><td width=\"80.33333333333333\" valign=\"top\" style=\"word-break: break-all;\"><input name=\"612329ae35f3ea37e7403454a260c386\" type=\"text\" title=\"出差地点\" value=\"\" leipiplugins=\"text\" orghide=\"0\" orgalign=\"left\" orgwidth=\"80\" orgtype=\"text\" style=\"text-align: left; width: 80px;\" orgfontsize=\"\" orgheight=\"\"></td><td width=\"131\" valign=\"top\" style=\"word-break: break-all;\"><input name=\"530f5174d3656e882d00d73aefb7bd0f\" type=\"text\" value=\"宏控件：当前用户上级部门\" title=\"上级部门名称\" leipiplugins=\"macros\" orgtype=\"当前用户上级部门\" expression=\"\" orghide=\"1\" orgfontsize=\"\" orgwidth=\"100\" style=\"width: 100px;\"></td></tr><tr><td width=\"162\" valign=\"top\" style=\"word-break: break-all;\">时间</td><td valign=\"top\" rowspan=\"1\" colspan=\"2\" style=\"word-break: break-all;\" width=\"352.3333333333333\">从<input name=\"592c59589144ddc68d05d528da17dcdc\" type=\"text\" value=\"日期控件：日期\" title=\"开始时间\" leipiplugins=\"datetime\" orgformat=\"日期\" orgfontsize=\"\" orgwidth=\"80\" style=\"width: 80px;\">至<input name=\"f782779e8b5d709462c8e71e0d9019f2\" type=\"text\" value=\"日期控件：日期\" title=\"结束时间\" leipiplugins=\"datetime\" orgformat=\"日期\" orgfontsize=\"\" orgwidth=\"80\" style=\"width: 80px;\">总<input name=\"c187dcf838e8f5ca1cbbf02f3a3bb6c5\" type=\"text\" value=\"宏控件：DATE([结束时间]) - DATE([开始时间])+1\" title=\"计划出差天数\" leipiplugins=\"macros\" orgtype=\"当前日期+时间\" expression=\"DATE([结束时间]) - DATE([开始时间])+1\" orghide=\"0\" orgfontsize=\"\" orgwidth=\"40\" style=\"width: 40px;\">天</td><td rowspan=\"2\" width=\"80.33333333333333\">出差人员</td><td width=\"131\" valign=\"middle\" style=\"word-break: break-all;\" rowspan=\"2\"><img width=\"24\" height=\"24\" src=\"/htmlsrc/bpm/images/user.png\" title=\"同行同事\" alt=\"\" leipiplugins=\"chooseuser\" orgwidth=\"128\" orgheight=\"64\" name=\"9a0d75235c9690aedb002d98ea80e382\"></td></tr><tr><td width=\"162\" valign=\"top\" style=\"word-break: break-all;\">出差原因</td><td valign=\"top\" rowspan=\"1\" colspan=\"2\" width=\"352.3333333333333\"><textarea title=\"出差理由\" name=\"7b5dc3918878d6cb9aecf621cabe7be2\" leipiplugins=\"textarea\" value=\"\" orgrich=\"0\" orgfontsize=\"\" orgwidth=\"250\" orgheight=\"80\" style=\"width: 250px; height: 80px;\"></textarea></td></tr><tr><td width=\"162\" valign=\"top\" style=\"word-break: break-all;\">部门领导意见</td><td valign=\"top\" style=\"word-break: break-all;\" rowspan=\"1\" colspan=\"2\" width=\"352.3333333333333\"><textarea title=\"部门领导具体意见\" name=\"8d66e4ee2697527d60327093463aef0c\" leipiplugins=\"textarea\" value=\"\" orgrich=\"0\" orgfontsize=\"\" orgwidth=\"250\" orgheight=\"80\" style=\"width: 250px; height: 80px;\"></textarea></td><td width=\"80.33333333333333\" valign=\"middle\"><span leipiplugins=\"select\"><select name=\"63b1dec8c3ce1aba53aad951d7153e06\" title=\"部门领导同意与否\" leipiplugins=\"select\" size=\"1\" orgwidth=\"80\" style=\"width: 80px;\"><option value=\"同意\" selected=\"selected\">同意</option><option value=\"不同意\">不同意</option></select>&nbsp;&nbsp;</span></td><td width=\"131\" valign=\"top\"><img name=\"e1111ed4d950d8312a1ea32c6cf0289f\" title=\"部门领导签名\" leipiplugins=\"sign\" orgwidth=\"64\" orgheight=\"64\" src=\"/htmlsrc/bpm/form/sign.png\" style=\"width: 64px; height: 64px;\"></td></tr><tr><td valign=\"top\" colspan=\"1\" rowspan=\"1\" style=\"word-break: break-all;\" width=\"31\">支行行长意见</td><td valign=\"top\" colspan=\"2\" rowspan=\"1\" style=\"word-break: break-all;\"><textarea title=\"支行行长具体意见\" name=\"5ab4fe2b589e38099e73a60782d46eef\" leipiplugins=\"textarea\" value=\"\" orgrich=\"0\" orgfontsize=\"\" orgwidth=\"250\" orgheight=\"80\" style=\"width: 250px; height: 80px;\"></textarea></td><td valign=\"middle\" colspan=\"1\" rowspan=\"1\" width=\"80.33333333333333\"><span leipiplugins=\"select\"><select name=\"d98727d1eb61d0a2faf570cfbf405c93\" title=\"支行行长同意与否\" leipiplugins=\"select\" size=\"1\" orgwidth=\"80\" style=\"width: 80px;\"><option value=\"同意\" selected=\"selected\">同意</option><option value=\"不同意\">不同意</option></select>&nbsp;&nbsp;</span></td><td valign=\"top\" colspan=\"1\" rowspan=\"1\"><img name=\"a1f0bd1a66d635e9b4b9bbc51561a0ac\" title=\"支行行长签名\" leipiplugins=\"sign\" orgwidth=\"64\" orgheight=\"64\" src=\"/htmlsrc/bpm/form/sign.png\" style=\"width: 64px; height: 64px;\"></td></tr><tr><td width=\"162\" valign=\"top\" style=\"word-break: break-all;\">分管领导意见</td><td valign=\"top\" rowspan=\"1\" colspan=\"2\" width=\"352.3333333333333\"><textarea title=\"分管领导具体意见\" name=\"27ffcf1b706e5ba00ae95cfb58e1b252\" leipiplugins=\"textarea\" value=\"\" orgrich=\"0\" orgfontsize=\"\" orgwidth=\"250\" orgheight=\"80\" style=\"width: 250px; height: 80px;\"></textarea></td><td width=\"80.33333333333333\" valign=\"middle\"><span leipiplugins=\"select\"><select name=\"deb9e28f45d23913501a04fa54ba7b3d\" title=\"分管领导同意与否\" leipiplugins=\"select\" size=\"1\" orgwidth=\"80\" style=\"width: 80px;\"><option value=\"同意\" selected=\"selected\">同意</option><option value=\"不同意\">不同意</option></select>&nbsp;&nbsp;</span></td><td width=\"131\" valign=\"top\"><img name=\"1dfd709d4c62d9b79a5f295ad4be7767\" title=\"分管领导签名\" leipiplugins=\"sign\" orgwidth=\"64\" orgheight=\"64\" src=\"/htmlsrc/bpm/form/sign.png\" style=\"width: 64px; height: 64px;\"></td></tr><tr><td width=\"162\" valign=\"top\" style=\"word-break: break-all;\">主管领导意见</td><td valign=\"top\" rowspan=\"1\" colspan=\"2\" width=\"352.3333333333333\"><textarea title=\"主管领导具体意见\" name=\"d58cbb9926281b6afbbd24037516b061\" leipiplugins=\"textarea\" value=\"\" orgrich=\"0\" orgfontsize=\"\" orgwidth=\"250\" orgheight=\"80\" style=\"width: 250px; height: 80px;\"></textarea></td><td width=\"80.33333333333333\" valign=\"middle\"><span leipiplugins=\"select\"><select name=\"15bc67c4deb7914e7ae975b68abfbee1\" title=\"主管领导同意与否\" leipiplugins=\"select\" size=\"1\" orgwidth=\"80\" style=\"width: 80px;\"><option value=\"同意\" selected=\"selected\">同意</option><option value=\"不同意\">不同意</option></select>&nbsp;&nbsp;</span></td><td width=\"131\" valign=\"top\"><img name=\"4dc6ce8f521574ad5353e4d029b72126\" title=\"主管领导签名\" leipiplugins=\"sign\" orgwidth=\"64\" orgheight=\"64\" src=\"/htmlsrc/bpm/form/sign.png\" style=\"width: 64px; height: 64px;\"></td></tr></tbody></table><p><br></p>","data":[{"name":"8ac8da83627df7b14df32cdbc8d34c61","type":"text","value":"宏控件：当前用户姓名","title":"申请人","leipiplugins":"macros","orgtype":"当前用户姓名","expression":"","orgwidth":"150","style":"width: 150px;"},{"name":"36aff1b25f01d91d44f46ffbd75ba5ef","type":"text","value":"宏控件：当前用户部门","title":"所在部门","leipiplugins":"macros","orgtype":"当前用户部门","expression":"","orghide":"0","orgfontsize":"","orgwidth":"80","style":"width: 80px;"},{"name":"2d642e56534d4a58f9c0bc9beb53717e","title":"是否需要车辆","leipiplugins":"select","size":"1","orgwidth":"40","style":"width: 40px;","values":["是","否"],"defaultValue":"是"},{"name":"5ba072c60bad0e857ea4a9520d8d288a","type":"text","value":"宏控件：当前日期+时间","title":"申请时间","leipiplugins":"macros","orgtype":"当前日期+时间","expression":"","orgwidth":"150","style":"width: 150px;"},{"name":"612329ae35f3ea37e7403454a260c386","type":"text","title":"出差地点","value":"","leipiplugins":"text","orghide":"0","orgalign":"left","orgwidth":"80","orgtype":"text","style":"text-align: left; width: 80px;","orgfontsize":"","orgheight":""},{"name":"530f5174d3656e882d00d73aefb7bd0f","type":"text","value":"宏控件：当前用户上级部门","title":"上级部门名称","leipiplugins":"macros","orgtype":"当前用户上级部门","expression":"","orghide":"1","orgfontsize":"","orgwidth":"100","style":"width: 100px;"},{"name":"592c59589144ddc68d05d528da17dcdc","type":"text","value":"日期控件：日期","title":"开始时间","leipiplugins":"datetime","orgformat":"日期","orgfontsize":"","orgwidth":"80","style":"width: 80px;"},{"name":"f782779e8b5d709462c8e71e0d9019f2","type":"text","value":"日期控件：日期","title":"结束时间","leipiplugins":"datetime","orgformat":"日期","orgfontsize":"","orgwidth":"80","style":"width: 80px;"},{"name":"c187dcf838e8f5ca1cbbf02f3a3bb6c5","type":"text","value":"宏控件：DATE([结束时间]) - DATE([开始时间])+1","title":"计划出差天数","leipiplugins":"macros","orgtype":"当前日期+时间","expression":"DATE([结束时间]) - DATE([开始时间])+1","orghide":"0","orgfontsize":"","orgwidth":"40","style":"width: 40px;"},{"width":"24","height":"24","src":"/htmlsrc/bpm/images/user.png","title":"同行同事","alt":"","leipiplugins":"chooseuser","orgwidth":"128","orgheight":"64","name":"9a0d75235c9690aedb002d98ea80e382"},{"title":"出差理由","name":"7b5dc3918878d6cb9aecf621cabe7be2","leipiplugins":"textarea","value":"","orgrich":"0","orgfontsize":"","orgwidth":"250","orgheight":"80","style":"width: 250px; height: 80px;"},{"title":"部门领导具体意见","name":"8d66e4ee2697527d60327093463aef0c","leipiplugins":"textarea","value":"","orgrich":"0","orgfontsize":"","orgwidth":"250","orgheight":"80","style":"width: 250px; height: 80px;"},{"name":"63b1dec8c3ce1aba53aad951d7153e06","title":"部门领导同意与否","leipiplugins":"select","size":"1","orgwidth":"80","style":"width: 80px;","values":["同意","不同意"],"defaultValue":"同意"},{"name":"e1111ed4d950d8312a1ea32c6cf0289f","title":"部门领导签名","leipiplugins":"sign","orgwidth":"64","orgheight":"64","src":"/htmlsrc/bpm/form/sign.png","style":"width: 64px; height: 64px;"},{"title":"支行行长具体意见","name":"5ab4fe2b589e38099e73a60782d46eef","leipiplugins":"textarea","value":"","orgrich":"0","orgfontsize":"","orgwidth":"250","orgheight":"80","style":"width: 250px; height: 80px;"},{"name":"d98727d1eb61d0a2faf570cfbf405c93","title":"支行行长同意与否","leipiplugins":"select","size":"1","orgwidth":"80","style":"width: 80px;","values":["同意","不同意"],"defaultValue":"同意"},{"name":"a1f0bd1a66d635e9b4b9bbc51561a0ac","title":"支行行长签名","leipiplugins":"sign","orgwidth":"64","orgheight":"64","src":"/htmlsrc/bpm/form/sign.png","style":"width: 64px; height: 64px;"},{"title":"分管领导具体意见","name":"27ffcf1b706e5ba00ae95cfb58e1b252","leipiplugins":"textarea","value":"","orgrich":"0","orgfontsize":"","orgwidth":"250","orgheight":"80","style":"width: 250px; height: 80px;"},{"name":"deb9e28f45d23913501a04fa54ba7b3d","title":"分管领导同意与否","leipiplugins":"select","size":"1","orgwidth":"80","style":"width: 80px;","values":["同意","不同意"],"defaultValue":"同意"},{"name":"1dfd709d4c62d9b79a5f295ad4be7767","title":"分管领导签名","leipiplugins":"sign","orgwidth":"64","orgheight":"64","src":"/htmlsrc/bpm/form/sign.png","style":"width: 64px; height: 64px;"},{"title":"主管领导具体意见","name":"d58cbb9926281b6afbbd24037516b061","leipiplugins":"textarea","value":"","orgrich":"0","orgfontsize":"","orgwidth":"250","orgheight":"80","style":"width: 250px; height: 80px;"},{"name":"15bc67c4deb7914e7ae975b68abfbee1","title":"主管领导同意与否","leipiplugins":"select","size":"1","orgwidth":"80","style":"width: 80px;","values":["同意","不同意"],"defaultValue":"同意"},{"name":"4dc6ce8f521574ad5353e4d029b72126","title":"主管领导签名","leipiplugins":"sign","orgwidth":"64","orgheight":"64","src":"/htmlsrc/bpm/form/sign.png","style":"width: 64px; height: 64px;"}]}},
    resp:[
        {
            en: "id",
            cn: "表单ID",
            type:"string"
        },
        {
            en: "text",
            cn: "表单名",
            type:"string"
        },
        {
            en: "pid",
            cn: "父级分类ID",
            type:"string"
        },
        {
            en: "type",
            cn: "类型，cat为分类，form为表单",
            type:"string"
        }
    ],
    respEg: {"success":true,"errMessage":"","data":{"id":"5e01873d1877e94f67269901","text":"测试表单","pid":"5d6da43978a7e0489445d48f","type":"form"}}
}